import { createStore } from 'vuex'
import actions from './actions.js'
import mutations from './mulations.js'
import { getCookie } from '@utils/jsCookie.js'
import DefaultMenu from './menu.js'

let state = {
  userInfo: getCookie('userInfo'),
  defaultMenu: DefaultMenu.menu
}

export default createStore({
  state,
  actions,
  mutations
})
